package com.yan.community.service;

import com.github.pagehelper.PageInfo;
import com.yan.club.result.Result;
import com.yan.community.dto.CommunityCategoryDto;
import com.yan.community.model.ClubCommunityCategory;

/**
 * @author 彦
 * @since 2023/12/12 14:54
 */
public interface CommunityCategoryService {

    /**
     * 得到全部社团分类
     *
     * @param clubCategoryDto
     * @return
     */
    Result<PageInfo<ClubCommunityCategory>> getAllCategory(CommunityCategoryDto clubCategoryDto);

    /**
     * 逻辑删除
     *
     * @param id
     * @return
     */
    Result<String> delCategory(Long id);


    /**
     * 新增 / 修改
     *
     * @return
     */
    Result<String> saveCategory(ClubCommunityCategory clubCategory);

    /**
     * 根据ID查询种类
     * @param id
     * @return
     */
    Result<ClubCommunityCategory> getCateGoryById(Long id);
}
